# call module
Function CallModule {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory = $true)]
        [string]$Name
    )
    [string]$ModuleName = Join-Path $PSScriptRoot ".\$Name.ps1"
    [string]$ModuleNameLocal = Join-Path $PSScriptRoot ".\$Name.local.ps1"
    . $ModuleName
    if (Test-Path $ModuleNameLocal) {
        . $ModuleNameLocal
    }
    else {
        # onDebug
        Write-Debug "For '$Name', No local module found"
    }
}
#-------------------#

#  call init
CallModule -Name "Init"
# alias executable name or one line
CallModule -Name "Lite-Alias"
# alias with function
CallModule -Name "Func-Alias"
